package br.com.passeionaweb.android.TabelaFipe;

import android.app.TabActivity;
import android.content.Intent;
import android.widget.TabHost;

public class MainActivity extends TabActivity {
	private static final String TAB_SEACH = "search";
	private static final String TAB_HISTORY = "history";

	@Override
	protected void onResume() {
		super.onResume();
		TabHost host = getTabHost();

		host.addTab(host.newTabSpec(TAB_SEACH).setContent(new Intent(this, SeachActivity.class))
				.setIndicator(getResources().getString(R.string.tab_sarch),
						getResources().getDrawable(R.drawable.ic_tab_search)));
		host.addTab(host.newTabSpec(TAB_HISTORY)
				.setContent(new Intent(this, HistoryActivity.class)).setIndicator(
						getResources().getString(R.string.tab_history),
						getResources().getDrawable(R.drawable.ic_tab_history)));

	}

}
